package com.lst.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 系统用户
 *
 * @author Frank
 * @date 2019-12-30 15:36:39
 * @version: V1.0
 */
@Data
@NoArgsConstructor
@TableName(value = "sys_user")
@ApiModel(value = "系统用户")
public class SysUser {


    public static final String USER_ID = "user_id";
    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";
    public static final String EMAIL = "email";
    public static final String MOBILE = "mobile";
    public static final String STATUS = "status";
    public static final String CREATE_USER_ID = "create_user_id";
    public static final String CREATE_TIME = "create_time";
    public static final String DEPT_ID = "dept_id";

    @ApiModelProperty(name = "userId", dataType = "Long")
    @TableId(value = USER_ID,  type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty(name = "username", value = "用户名", dataType = "String")
    @TableField(value = USERNAME)
    private String username;

    @ApiModelProperty(name = "password", value = "密码", dataType = "String")
    @TableField(value = PASSWORD)
    private String password;

    @ApiModelProperty(name = "email", value = "邮箱", dataType = "String")
    @TableField(value = EMAIL)
    private String email;

    @ApiModelProperty(name = "mobile", value = "手机号", dataType = "String")
    @TableField(value = MOBILE)
    private String mobile;

    @ApiModelProperty(name = "status", value = "状态  0：禁用   1：正常", dataType = "Integer")
    @TableField(value = STATUS)
    private Integer status;

    @ApiModelProperty(name = "createUserId", value = "创建者ID", dataType = "Long")
    @TableField(value = CREATE_USER_ID)
    private Long createUserId;

    @ApiModelProperty(name = "createTime", value = "创建时间", dataType = "Date")
    @TableField(value = CREATE_TIME)
    private Date createTime;

    @ApiModelProperty(name = "deptId", value = "部门ID", dataType = "Long")
    @TableField(value = DEPT_ID)
    private Long deptId;
}